package main

import "fmt"

func main() {
	//定义浮点类型的数据
	var f1 float32 = 3.14
	fmt.Println("f1=", f1)

	var f2 float32 = -3.14
	fmt.Println("f2=", f2)

	var f3 float32 = 314e-2
	fmt.Println("f3=", f3)

	var f4 float32 = 314e+2
	fmt.Println("f4=", f4)

	var f5 float32 = 314e+2
	fmt.Println("f5=", f5)

	var f6 float64 = 314e+2
	fmt.Println("f6=", f6)

	var f7 float32 = 256.000000916
	fmt.Println("f7=", f7)

	var f8 float64 = 256.000000916
	fmt.Println("f8=", f8)

	var f9 = 3.14
	fmt.Printf("f9的类型是: %T", f9)
}
